package com.frogs.ucenter.service.daoimpl;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserMedicineChestDao;
import com.frogs.ucenter.entity.UserMedicineChest;
import com.frogs.ucenter.service.UserMedicineChestService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userMedicineChestService")
public class UserMedicineChestServiceImpl extends BaseServiceImpl<UserMedicineChest> implements UserMedicineChestService {
    @Autowired
    private UserMedicineChestDao userMedicineChestDao;

    public UserMedicineChestServiceImpl() {
        super();
    }

    public UserMedicineChestDao getUserMedicineChestDao() {
        return userMedicineChestDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserMedicineChest> getBaseDao() {
        return userMedicineChestDao;
    }

    public void setUserMedicineChestDao(UserMedicineChestDao userMedicineChestDao) {
        this.userMedicineChestDao = userMedicineChestDao;
    }
}